package commonClass.javaTest;

public class TypeTest {
	public int x;
	public static void main(String[] args) {
		int a='我';
		Integer s = new Integer(9);
		Integer t = new Integer(9);
		Long u = new Long(9);
		System.out.println(s.equals(t));
		System.out.println(s.equals(9));
		System.out.println(s.equals(new Integer(9)));
		System.out.println(s.equals(u));
		System.out.println(s==t);
		
		switch(3){
			case 1:{System.out.println("1"); break;}
			case 2:{System.out.println("2");break;}
			default:{System.out.println("default");}
		}
		
		int index = 1;
		boolean[] test = new boolean[3];
		System.out.println(test [0]+","+test [1]+","+test [2]);
		
		
		String ss = "hello";
		System.out.println(ss.equals("hello"));
		System.out.println(ss.equals(new String("hello")));
		
		short s1 = 1; s1 = (short) (s1 + 1);
		short s2 = 1; s2 += 1;
		
	}

}
